import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;


@SuppressWarnings("serial")
public class UnlockFeatures extends JFrame {

	Thread myt;
	
	public UnlockFeatures() {
		this.setTitle("Unlocked Feature Chooser");
		this.setSize(Launcher.WINDOW_WIDTH / 2, Launcher.WINDOW_HEIGHT / 2);
		addButtons();
		
		
		this.setVisible(true);
	}
	
	private void addButtons() {
		this.setLayout(new GridLayout(2, 3, BUTTON_SPACING * 2, BUTTON_SPACING));
		
		 JButton quickRevealB = new JButton("Unlock Quick Reveal");
		 
		 quickRevealB.addActionListener(new ActionListener() {
        	 
	            public void actionPerformed(ActionEvent e)
	            {
	                //Execute when button is pressed
	                RotSquare.quickReveal = true;
	            }
	        });
		 
		 this.add(quickRevealB);
	}
	
	private static final int BUTTON_SPACING = 20;

}
